{extend name="../../admin/view/main"}

{block name="content"}

<div class="layui-tab layui-tab-card think-bg-white">

    <ul class="layui-tab-title">
        {foreach ['0'=>lang('全  部'),'5'=>lang('待 归 还'),'6'=>lang('已 完 成')] as $k=>$v}{if isset($status) and $status eq $k}
        <li data-open="{:url('index')}?status={$k}" class="layui-this">{$v}</li>
        {else}
        <li data-open="{:url('index')}?status={$k}">{$v}</li>
        {/if}{/foreach}
    </ul>
    <div class="layui-tab-content">

        {include file='order/index_search'}

        <table class="layui-table margin-top-10" lay-skin="line">
            {notempty name='list'}
            <thead>
            <tr>
                <th class='list-table-check-td think-checkbox'>
                    <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
                </th>
                <!-- <th class='list-table-sort-td'>
                    <button class="layui-btn layui-btn-xs" data-reload type="button">刷 新</button>
                </th> -->
                <th class='text-left nowrap'>订单号</th>
                <th class='text-left nowrap'>商品信息</th>
                <th class='text-left nowrap'>所属店铺</th>
                <th class='text-left nowrap'>用户信息</th>
                <th class='text-left nowrap'>订单状态</th>
                <th class='text-left nowrap'>下单时间</th>
                <th class='text-left nowrap'>还机时间</th>
                <th class='text-left nowrap'>操作</th>
                <th></th>
            </tr>
            </thead>
            {/notempty}
            <tbody>
            {foreach $list as $key=>$vo}
            <tr>
                <td class='list-table-check-td think-checkbox'>
                    <label><input class="list-check-box" type='checkbox' value='{$vo.order_id}'></label>
                </td>

                <td class='nowrap'>
                    <div class="inline-block text-top sub-span-blue">
                        <span>{$vo.order_id|default='--'}</span>
                    </div>
                </td>
                <td class='nowrap'>
                    {notempty name='vo.goods_sku_pic'}
                    <div class="headimg" data-lazy-src="{$vo.goods_sku_pic}" data-tips-image></div>
                    {/notempty}
                    <div class="inline-block text-top sub-span-blue">
                        <div><span>{$vo.goods_name|default='--'}</span></div>
                    </div>
                </td>
                <td class='nowrap'>
                    <div class="notselect margin-top-5">
                        <span class="layui-badge layui-bg-gray layui-border-red">{$vo.shop_name}</span>
                    </div>
                </td>

                <td class='nowrap'>
                    <div class="inline-block text-top sub-span-blue">
                        <div><span>{$vo.name|default='--'}</span></div>
                        <div><span>{$vo.mobile|default='--'}</span></div>
                    </div>
                </td>

                <td class='nowrap'>
                    <span class="layui-badge layui-bg-gray layui-border-red">{$vo.status_str}</span>
                </td>
                <td >
                    {$vo.gmt_created|default='--'}
                </td>

                <td class='nowrap'>
                    {$vo.back_date}
                </td>
                <td class='nowrap sub-strong-blue'>
                    <a data-modal="{:url('admin/order/basic')}?order_id={$vo.order_id|default=''}" data-width="65%"
                       class="layui-btn layui-btn-sm layui-btn-xs">基础信息</a>
                    <a data-modal="{:url('admin/order/plan')}?order_id={$vo.order_id|default=''}" data-width="2200"
                       class="layui-btn layui-btn-sm layui-btn-xs">查看账单</a>
                    <a data-modal="{:url('admin/order/contact')}?member_id={$vo.member_id|default=''}"
                       class="layui-btn layui-btn-sm layui-btn-xs">紧急联系人</a>
                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
        {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
    </div>
    <script>form.render()</script>
</div>
{/block}
